<!doctype html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" type="text/css" href="index.css"/>
    <title>api</title>
</head>
<body>

<div id="header">
    <div class="head">
        <ul class="nav">
            <li>
                <a href="index_1.html" title="index">
                    <span class="title_head"></span><span class="title">首页</span></a>
            </li>
            <li>
                <a href="api_1.html" title="API"><span class="title_head"></span><span class="title">API</span></a>
            </li>
        </ul>
    </div>
</div>

<div id="logo" class="wtcenter"><h1>API管理</h1></div>

<div id="nav" class="wtcenter">
    <ul>
        <li><a href="index_1.html">首页</a></li>
        <li class="selected"><a href="api_1.html">API</a></li>
    </ul>
    <div class="clear"></div>
</div>
﻿
<div id="content" class="wtcenter">
    <div id="sidePanel" class="side_panel">
        <ul>
            <li class="selected"><a href="api_1.html">账户</a></li>
            <li class=""><a href="api_2.html">游戏</a></li>
        </ul>
    </div>
    <div id="mainPanel">
        <div id="nav_list">
            <ul>
                <li><a href="api_1.html#1">1.1 主页基本信息</a></li>
                <li><a href="api_1.html#2">1.2 自己玩过的游戏列表</a></li>
                <li><a href="api_1.html#3">1.3 查看好友信息</a></li>
                <li><a href="api_1.html#4">1.4 验证token有效期</a></li>
            </ul>
        </div>
        <div class="p_content">
            <a name="1"></a>
            <h3>1.1 主页基本信息(<font color="green">"/ajax/base_data"</font>)</h3>
            <div class="code_source">
			    <pre class="code_show">
<font color="#000">请求格式</font>
{
}
<font color="#000">回复格式</font>

{
    "userData",    <font color='#333'></font>
    "adData":[{
        "gid",     <font color='#333'>游戏id</font>
        "game_name",     <font color='#333'>游戏名称</font>
        "ad_pic_url"    <font color='#333'>图片src</font>
    }],
    "recentPlay":[{
        "gid",     <font color='#333'></font>
        "game_icon",     <font color='#333'></font>
        "game_name",     <font color='#333'></font>
        "last_play_time"    <font color='#333'></font>
    }]
}
                </pre>
            </div>
        </div>

        <div class="p_content">
            <a name="2"></a>
            <h3>1.2 自己玩过的游戏列表(<font color="green">"/ajax/history_play"</font>)</h3>
            <div class="code_source">
			    <pre class="code_show">
<font color="#000">请求格式</font>
{
}
<font color="#000">回复格式</font>
{
    "recentPlay":[{
        "gid",     <font color='#333'></font>
        "game_icon",     <font color='#333'></font>
        "game_name",     <font color='#333'></font>
        "last_play_time"    <font color='#333'></font>
    }]
}
                </pre>
            </div>
        </div>
        <div class="p_content">
            <a name="3"></a>
            <h3>1.3 查看好友信息(<font color="green">"/ajax/friend_info"</font>)</h3>
            <div class="code_source">
			    <pre class="code_show">
<font color="#000">请求格式</font>
{
    "f_uid"    <font color='#333'></font>
}
<font color="#000">回复格式</font>
{
    "f_icon",    <font color='#333'></font>
    "f_name",    <font color='#333'></font>
    "recentPlay":[{
        "gid",     <font color='#333'></font>
        "game_icon",     <font color='#333'></font>
        "game_name",     <font color='#333'></font>
        "last_play_time"    <font color='#333'></font>
    }]
}
                </pre>
            </div>
        </div>

        <div class="p_content">
            <a name="4"></a>
            <h3>1.4 验证token有效期(<font color="green">"/ajax/token_expires"</font>)</h3>
            <div class="code_source">
			    <pre class="code_show">
<font color="#000">请求格式</font>
{
    "token",    <font color='#333'></font>
    "uid"    <font color='#333'></font>
}
<font color="#000">回复格式</font>
{
    "ret"    <font color='#333'>1 表示有效 0表示无效，需要重新登录</font>
}
                </pre>
            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>

<div id="footer">
    <div id="promote"><a href="#">关于</a> |<span>商务合作 : #</span></div>
</div>
</body>
</html>